﻿export default [
  {
    path: '/',
    redirect: '/welcome',
  },
  {
    component: 'welcome',
    path: '/welcome',
  },
  {
    component: '404',
    path: '/*',
  },
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        redirect: '/user/login',
      },
      {
        path: '/user/login',
        layout: false,
        component: './user/login',
      },
      {
        path: '/user/password/forgot',
        component: './user/password/forgot',
      },
      {
        path: '/user/register/result',
        component: './user/register/result/index',
      },
    ],
  },

  {
    routes: [
      {
        path: '/auth/rbacMenu',
        component: './auth/rbacMenu',
      },
      {
        path: '/auth/rbacMenuTree',
        component: './auth/rbacMenuTree',
      },
      {
        path: '/auth/tenant',
        component: './auth/tenant',
      },
      {
        path: '/auth/rbacPermission',
        component: './auth/rbacPermission',
      },

      {
        path: '/auth/rbacUser',
        component: './auth/rbacUser',
      },
      {
        path: '/auth/rbacRole',
        component: './auth/rbacRole',
      },
    ],
  },
  {
    path: '/account',
    routes: [
      {
        path: '/account/center',
        component: './account/center',
      },
      {
        path: '/account/settings',
        component: './account/settings',
      },
    ],
  },
  {
    path: '/dashboard',
    routes: [
      {
        path: '/dashboard/analysis',
        component: './dashboard/analysis',
      },
      {
        path: '/dashboard/monitor',
        component: './dashboard/monitor',
      },
      {
        path: '/dashboard/workplace',
        component: './dashboard/workplace',
      },
    ],
  },
  {
    path: '/chat',
    layout: false,
    routes: [
      {
        path: '/chat/index',
        component: './chat',
      },
    ],
  },
];
